package spring.boot.admin.server006.controller;

import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {

    //查询
    @GetMapping("select")
    public String select() {
        return "hello select";
    }

    //新增
    @PostMapping("insert")
    public String insert() {
        return "hello insert";
    }


    //更新整个对象
    @PutMapping("update")
    public String update() {
        return "hello update all";
    }

    //更新对象部分信息
    @PatchMapping("update/some")
    public String updateSome() {
        return "hello update some";
    }

    //删除
    @DeleteMapping("delete")
    public String delete() {
        return "hello delete";
    }

}
